#! /bin/sh
# @configure_input@

dir=`dirname $0`

SED=@SED@

$dir/../tests/filter_stderr_basic    |
perl  -0777 -p -e   's/error 4 Interrupted system call\nVG_\(poll\) failed \(old kernel \?\) retrying .*\n//g' |
$SED -e '/^Copyright (C) /d' \
    \
    -e '/TO DEBUG THIS PROCESS USING GDB/d' \
    -e '/\/path\/to\/gdb/d' \
    -e '/and then give GDB the following command/d' \
    -e '/target remote |/d' \
    -e '/pid is optional if only one valgrind process is running/d' \
    -e '/warning: remote target does not support file transfer, attempting to access files from local filesystem./d' \
    -e '/warning: could not convert/d' \
    -e '/This normally should not happen/d' \
    -e 's/block of size .* in arena/block of size XXXX in arena/'
